\hypertarget{class_posix___qext_serial_port}{}\section{Posix\+\_\+\+Qext\+Serial\+Port Class Reference}
\label{class_posix___qext_serial_port}\index{Posix\+\_\+\+Qext\+Serial\+Port@{Posix\+\_\+\+Qext\+Serial\+Port}}
Inheritance diagram for Posix\+\_\+\+Qext\+Serial\+Port\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=3.000000cm]{class_posix___qext_serial_port}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{class_posix___qext_serial_port_ae6e0dda91cd654352c26686e88a416ff}{Posix\+\_\+\+Qext\+Serial\+Port}} ()
\item 
\mbox{\hyperlink{class_posix___qext_serial_port_ac409b3d891500be663894c9910749390}{Posix\+\_\+\+Qext\+Serial\+Port}} (const \mbox{\hyperlink{class_posix___qext_serial_port}{Posix\+\_\+\+Qext\+Serial\+Port}} \&s)
\item 
\mbox{\Hypertarget{class_posix___qext_serial_port_a68f82b42c6be8c39476fce07c1ff9099}\label{class_posix___qext_serial_port_a68f82b42c6be8c39476fce07c1ff9099}} 
{\bfseries Posix\+\_\+\+Qext\+Serial\+Port} (const Q\+String \&name, Qext\+Serial\+Base\+::\+Query\+Mode mode=Qext\+Serial\+Base\+::\+Polling)
\item 
\mbox{\Hypertarget{class_posix___qext_serial_port_ac4b94dd87dbd1dcebb90e8cb368681bb}\label{class_posix___qext_serial_port_ac4b94dd87dbd1dcebb90e8cb368681bb}} 
{\bfseries Posix\+\_\+\+Qext\+Serial\+Port} (const \mbox{\hyperlink{struct_port_settings}{Port\+Settings}} \&settings, Qext\+Serial\+Base\+::\+Query\+Mode mode=Qext\+Serial\+Base\+::\+Polling)
\item 
\mbox{\Hypertarget{class_posix___qext_serial_port_a0de9ecc15cedbe6713ea2da1ce135e9c}\label{class_posix___qext_serial_port_a0de9ecc15cedbe6713ea2da1ce135e9c}} 
{\bfseries Posix\+\_\+\+Qext\+Serial\+Port} (const Q\+String \&name, const \mbox{\hyperlink{struct_port_settings}{Port\+Settings}} \&settings, Qext\+Serial\+Base\+::\+Query\+Mode mode=Qext\+Serial\+Base\+::\+Polling)
\item 
\mbox{\hyperlink{class_posix___qext_serial_port}{Posix\+\_\+\+Qext\+Serial\+Port}} \& \mbox{\hyperlink{class_posix___qext_serial_port_ae02031d657490ab37d5badf42482847a}{operator=}} (const \mbox{\hyperlink{class_posix___qext_serial_port}{Posix\+\_\+\+Qext\+Serial\+Port}} \&s)
\item 
virtual \mbox{\hyperlink{class_posix___qext_serial_port_a12f6cdddbfd1b37109a39a0bcffb446d}{$\sim$\+Posix\+\_\+\+Qext\+Serial\+Port}} ()
\item 
virtual void \mbox{\hyperlink{class_posix___qext_serial_port_a007fcdd90f1137b010b6c43aa5b6dc6e}{set\+Baud\+Rate}} (Baud\+Rate\+Type)
\item 
virtual void \mbox{\hyperlink{class_posix___qext_serial_port_a8f428dad3c4ec2fa8128397628c7e5d1}{set\+Data\+Bits}} (Data\+Bits\+Type)
\item 
virtual void \mbox{\hyperlink{class_posix___qext_serial_port_a22dedc4f44c33b13f64bff33f844f795}{set\+Parity}} (Parity\+Type)
\item 
virtual void \mbox{\hyperlink{class_posix___qext_serial_port_a34b54ac1bef6090010bf00a45dc173fe}{set\+Stop\+Bits}} (Stop\+Bits\+Type)
\item 
virtual void \mbox{\hyperlink{class_posix___qext_serial_port_a8bdd56422fbb95da7216f182a1ef6cfb}{set\+Flow\+Control}} (Flow\+Type)
\item 
virtual void \mbox{\hyperlink{class_posix___qext_serial_port_a33cde9629cc224628258dedbb5b48392}{set\+Timeout}} (long)
\item 
virtual bool \mbox{\hyperlink{class_posix___qext_serial_port_a200cb519edfef82199bf1701f4b872e9}{open}} (Open\+Mode mode)
\item 
virtual void \mbox{\hyperlink{class_posix___qext_serial_port_a3a7ddf86a867770c88777c3e78545cb0}{close}} ()
\item 
virtual void \mbox{\hyperlink{class_posix___qext_serial_port_a5f12a1a6c1c6a163fe146272e9a7d275}{flush}} ()
\item 
virtual qint64 \mbox{\hyperlink{class_posix___qext_serial_port_a6687bed8a582b144763eb11c4240dbe5}{size}} () const
\item 
virtual qint64 \mbox{\hyperlink{class_posix___qext_serial_port_a6d593fe4f4623e93537a531d2c6157b7}{bytes\+Available}} ()
\item 
virtual void \mbox{\hyperlink{class_posix___qext_serial_port_a3a425e78db628945a666c52aa8638d0f}{unget\+Char}} (char c)
\item 
virtual void \mbox{\hyperlink{class_posix___qext_serial_port_aa099923f1360a08c6b7072254fd056e6}{translate\+Error}} (ulong error)
\item 
virtual void \mbox{\hyperlink{class_posix___qext_serial_port_a089c560fd901eabe7190e80a36c7dcb8}{set\+Dtr}} (bool set=true)
\item 
virtual void \mbox{\hyperlink{class_posix___qext_serial_port_aa099a4b3f406cf017e1dfe55da3a2c6a}{set\+Rts}} (bool set=true)
\item 
virtual ulong \mbox{\hyperlink{class_posix___qext_serial_port_ab419544e866cab58b8a3ce6341f6a7e9}{line\+Status}} ()
\end{DoxyCompactItemize}
\subsection*{Protected Member Functions}
\begin{DoxyCompactItemize}
\item 
virtual qint64 \mbox{\hyperlink{class_posix___qext_serial_port_a73b99fe7198e7e94b13c13416a6b9fae}{read\+Data}} (char $\ast$data, qint64 max\+Size)
\item 
virtual qint64 \mbox{\hyperlink{class_posix___qext_serial_port_ae8aabe89e479259b0b991dbd6b424f78}{write\+Data}} (const char $\ast$data, qint64 max\+Size)
\end{DoxyCompactItemize}
\subsection*{Protected Attributes}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{class_posix___qext_serial_port_ac4fcc5ae9850c3bc9952a13e4ef82273}\label{class_posix___qext_serial_port_ac4fcc5ae9850c3bc9952a13e4ef82273}} 
Q\+File $\ast$ {\bfseries Posix\+\_\+\+File}
\item 
\mbox{\Hypertarget{class_posix___qext_serial_port_a4946a554d3cfcd190b4df72f6f44f6eb}\label{class_posix___qext_serial_port_a4946a554d3cfcd190b4df72f6f44f6eb}} 
struct termios {\bfseries Posix\+\_\+\+Comm\+Config}
\item 
\mbox{\Hypertarget{class_posix___qext_serial_port_a0a876397917fbf082b56ae43ab2b4b7b}\label{class_posix___qext_serial_port_a0a876397917fbf082b56ae43ab2b4b7b}} 
struct timeval {\bfseries Posix\+\_\+\+Timeout}
\item 
\mbox{\Hypertarget{class_posix___qext_serial_port_ae5813ea1fd76c8c5a8948c4085d3e84e}\label{class_posix___qext_serial_port_ae5813ea1fd76c8c5a8948c4085d3e84e}} 
struct timeval {\bfseries Posix\+\_\+\+Copy\+\_\+\+Timeout}
\end{DoxyCompactItemize}
\subsection*{Additional Inherited Members}


\subsection{Detailed Description}
\begin{DoxyVersion}{Version}
1.\+0.\+0 
\end{DoxyVersion}
\begin{DoxyAuthor}{Author}
Stefan Sander 

Michal Policht
\end{DoxyAuthor}
A cross-\/platform serial port class. This class encapsulates the P\+O\+S\+IX portion of \mbox{\hyperlink{class_qext_serial_port}{Qext\+Serial\+Port}}. The user will be notified of errors and possible portability conflicts at run-\/time by default -\/ this behavior can be turned off by defining {\itshape T\+T\+Y\+\_\+\+N\+O\+W\+A\+RN} (to turn off all warnings) or {\itshape T\+T\+Y\+\_\+\+N\+O\+W\+A\+R\+N\+\_\+\+P\+O\+RT} (to turn off portability warnings) in the project. Note that {\itshape T\+T\+Y\+\_\+\+N\+O\+W\+A\+RN} will also turn off portability warnings. 

\subsection{Constructor \& Destructor Documentation}
\mbox{\Hypertarget{class_posix___qext_serial_port_ae6e0dda91cd654352c26686e88a416ff}\label{class_posix___qext_serial_port_ae6e0dda91cd654352c26686e88a416ff}} 
\index{Posix\+\_\+\+Qext\+Serial\+Port@{Posix\+\_\+\+Qext\+Serial\+Port}!Posix\+\_\+\+Qext\+Serial\+Port@{Posix\+\_\+\+Qext\+Serial\+Port}}
\index{Posix\+\_\+\+Qext\+Serial\+Port@{Posix\+\_\+\+Qext\+Serial\+Port}!Posix\+\_\+\+Qext\+Serial\+Port@{Posix\+\_\+\+Qext\+Serial\+Port}}
\subsubsection{\texorpdfstring{Posix\+\_\+\+Qext\+Serial\+Port()}{Posix\_QextSerialPort()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily Posix\+\_\+\+Qext\+Serial\+Port\+::\+Posix\+\_\+\+Qext\+Serial\+Port (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}

Default constructor. Note that the name of the device used by a \mbox{\hyperlink{class_qext_serial_port}{Qext\+Serial\+Port}} constructed with this constructor will be determined by \#defined constants, or lack thereof -\/ the default behavior is the same as {\itshape T\+T\+Y\+\_\+\+L\+I\+N\+UX}. Possible naming conventions and their associated constants are\+:

\begin{DoxyVerb}Constant         Used By         Naming Convention
----------       -------------   ------------------------
_TTY_WIN_        Windows         COM1, COM2
_TTY_IRIX_       SGI/IRIX        /dev/ttyf1, /dev/ttyf2
_TTY_HPUX_       HP-UX           /dev/tty1p0, /dev/tty2p0
_TTY_SUN_        SunOS/Solaris   /dev/ttya, /dev/ttyb
_TTY_DIGITAL_    Digital UNIX    /dev/tty01, /dev/tty02
_TTY_FREEBSD_    FreeBSD         /dev/ttyd0, /dev/ttyd1
_TTY_LINUX_      Linux           /dev/ttyS0, /dev/ttyS1
<none>           Linux           /dev/ttyS0, /dev/ttyS1
\end{DoxyVerb}


This constructor assigns the device name to the name of the first port on the specified system. See the other constructors if you need to open a different port. \mbox{\Hypertarget{class_posix___qext_serial_port_ac409b3d891500be663894c9910749390}\label{class_posix___qext_serial_port_ac409b3d891500be663894c9910749390}} 
\index{Posix\+\_\+\+Qext\+Serial\+Port@{Posix\+\_\+\+Qext\+Serial\+Port}!Posix\+\_\+\+Qext\+Serial\+Port@{Posix\+\_\+\+Qext\+Serial\+Port}}
\index{Posix\+\_\+\+Qext\+Serial\+Port@{Posix\+\_\+\+Qext\+Serial\+Port}!Posix\+\_\+\+Qext\+Serial\+Port@{Posix\+\_\+\+Qext\+Serial\+Port}}
\subsubsection{\texorpdfstring{Posix\+\_\+\+Qext\+Serial\+Port()}{Posix\_QextSerialPort()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily Posix\+\_\+\+Qext\+Serial\+Port\+::\+Posix\+\_\+\+Qext\+Serial\+Port (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{class_posix___qext_serial_port}{Posix\+\_\+\+Qext\+Serial\+Port}} \&}]{s }\end{DoxyParamCaption})}

Copy constructor. \mbox{\Hypertarget{class_posix___qext_serial_port_a12f6cdddbfd1b37109a39a0bcffb446d}\label{class_posix___qext_serial_port_a12f6cdddbfd1b37109a39a0bcffb446d}} 
\index{Posix\+\_\+\+Qext\+Serial\+Port@{Posix\+\_\+\+Qext\+Serial\+Port}!````~Posix\+\_\+\+Qext\+Serial\+Port@{$\sim$\+Posix\+\_\+\+Qext\+Serial\+Port}}
\index{````~Posix\+\_\+\+Qext\+Serial\+Port@{$\sim$\+Posix\+\_\+\+Qext\+Serial\+Port}!Posix\+\_\+\+Qext\+Serial\+Port@{Posix\+\_\+\+Qext\+Serial\+Port}}
\subsubsection{\texorpdfstring{$\sim$\+Posix\+\_\+\+Qext\+Serial\+Port()}{~Posix\_QextSerialPort()}}
{\footnotesize\ttfamily Posix\+\_\+\+Qext\+Serial\+Port\+::$\sim$\+Posix\+\_\+\+Qext\+Serial\+Port (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}

Standard destructor. 

\subsection{Member Function Documentation}
\mbox{\Hypertarget{class_posix___qext_serial_port_a6d593fe4f4623e93537a531d2c6157b7}\label{class_posix___qext_serial_port_a6d593fe4f4623e93537a531d2c6157b7}} 
\index{Posix\+\_\+\+Qext\+Serial\+Port@{Posix\+\_\+\+Qext\+Serial\+Port}!bytes\+Available@{bytes\+Available}}
\index{bytes\+Available@{bytes\+Available}!Posix\+\_\+\+Qext\+Serial\+Port@{Posix\+\_\+\+Qext\+Serial\+Port}}
\subsubsection{\texorpdfstring{bytes\+Available()}{bytesAvailable()}}
{\footnotesize\ttfamily qint64 Posix\+\_\+\+Qext\+Serial\+Port\+::bytes\+Available (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}

Returns the number of bytes waiting in the port\textquotesingle{}s receive queue. This function will return 0 if the port is not currently open, or -\/1 on error. Error information can be retrieved by calling Posix\+\_\+\+Qext\+Serial\+Port\+::get\+Last\+Error(). 

Implements \mbox{\hyperlink{class_qext_serial_base}{Qext\+Serial\+Base}}.

\mbox{\Hypertarget{class_posix___qext_serial_port_a3a7ddf86a867770c88777c3e78545cb0}\label{class_posix___qext_serial_port_a3a7ddf86a867770c88777c3e78545cb0}} 
\index{Posix\+\_\+\+Qext\+Serial\+Port@{Posix\+\_\+\+Qext\+Serial\+Port}!close@{close}}
\index{close@{close}!Posix\+\_\+\+Qext\+Serial\+Port@{Posix\+\_\+\+Qext\+Serial\+Port}}
\subsubsection{\texorpdfstring{close()}{close()}}
{\footnotesize\ttfamily void Posix\+\_\+\+Qext\+Serial\+Port\+::close (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}

Closes a serial port. This function has no effect if the serial port associated with the class is not currently open. 

Implements \mbox{\hyperlink{class_qext_serial_base}{Qext\+Serial\+Base}}.

\mbox{\Hypertarget{class_posix___qext_serial_port_a5f12a1a6c1c6a163fe146272e9a7d275}\label{class_posix___qext_serial_port_a5f12a1a6c1c6a163fe146272e9a7d275}} 
\index{Posix\+\_\+\+Qext\+Serial\+Port@{Posix\+\_\+\+Qext\+Serial\+Port}!flush@{flush}}
\index{flush@{flush}!Posix\+\_\+\+Qext\+Serial\+Port@{Posix\+\_\+\+Qext\+Serial\+Port}}
\subsubsection{\texorpdfstring{flush()}{flush()}}
{\footnotesize\ttfamily void Posix\+\_\+\+Qext\+Serial\+Port\+::flush (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}

Flushes all pending I/O to the serial port. This function has no effect if the serial port associated with the class is not currently open. 

Implements \mbox{\hyperlink{class_qext_serial_base}{Qext\+Serial\+Base}}.

\mbox{\Hypertarget{class_posix___qext_serial_port_ab419544e866cab58b8a3ce6341f6a7e9}\label{class_posix___qext_serial_port_ab419544e866cab58b8a3ce6341f6a7e9}} 
\index{Posix\+\_\+\+Qext\+Serial\+Port@{Posix\+\_\+\+Qext\+Serial\+Port}!line\+Status@{line\+Status}}
\index{line\+Status@{line\+Status}!Posix\+\_\+\+Qext\+Serial\+Port@{Posix\+\_\+\+Qext\+Serial\+Port}}
\subsubsection{\texorpdfstring{line\+Status()}{lineStatus()}}
{\footnotesize\ttfamily unsigned long Posix\+\_\+\+Qext\+Serial\+Port\+::line\+Status (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}

returns the line status as stored by the port function. This function will retrieve the states of the following lines\+: D\+CD, C\+TS, D\+SR, and RI. On P\+O\+S\+IX systems, the following additional lines can be monitored\+: D\+TR, R\+TS, Secondary T\+XD, and Secondary R\+XD. The value returned is an unsigned long with specific bits indicating which lines are high. The following constants should be used to examine the states of individual lines\+:

\begin{DoxyVerb}Mask        Line
------      ----
LS_CTS      CTS
LS_DSR      DSR
LS_DCD      DCD
LS_RI       RI
LS_RTS      RTS (POSIX only)
LS_DTR      DTR (POSIX only)
LS_ST       Secondary TXD (POSIX only)
LS_SR       Secondary RXD (POSIX only)
\end{DoxyVerb}


This function will return 0 if the port associated with the class is not currently open. 

Implements \mbox{\hyperlink{class_qext_serial_base}{Qext\+Serial\+Base}}.

\mbox{\Hypertarget{class_posix___qext_serial_port_a200cb519edfef82199bf1701f4b872e9}\label{class_posix___qext_serial_port_a200cb519edfef82199bf1701f4b872e9}} 
\index{Posix\+\_\+\+Qext\+Serial\+Port@{Posix\+\_\+\+Qext\+Serial\+Port}!open@{open}}
\index{open@{open}!Posix\+\_\+\+Qext\+Serial\+Port@{Posix\+\_\+\+Qext\+Serial\+Port}}
\subsubsection{\texorpdfstring{open()}{open()}}
{\footnotesize\ttfamily bool Posix\+\_\+\+Qext\+Serial\+Port\+::open (\begin{DoxyParamCaption}\item[{Open\+Mode}]{mode }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}

Opens the serial port associated to this class. This function has no effect if the port associated with the class is already open. The port is also configured to the current settings, as stored in the Settings structure. 

Implements \mbox{\hyperlink{class_qext_serial_base}{Qext\+Serial\+Base}}.

\mbox{\Hypertarget{class_posix___qext_serial_port_ae02031d657490ab37d5badf42482847a}\label{class_posix___qext_serial_port_ae02031d657490ab37d5badf42482847a}} 
\index{Posix\+\_\+\+Qext\+Serial\+Port@{Posix\+\_\+\+Qext\+Serial\+Port}!operator=@{operator=}}
\index{operator=@{operator=}!Posix\+\_\+\+Qext\+Serial\+Port@{Posix\+\_\+\+Qext\+Serial\+Port}}
\subsubsection{\texorpdfstring{operator=()}{operator=()}}
{\footnotesize\ttfamily \mbox{\hyperlink{class_posix___qext_serial_port}{Posix\+\_\+\+Qext\+Serial\+Port}} \& Posix\+\_\+\+Qext\+Serial\+Port\+::operator= (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{class_posix___qext_serial_port}{Posix\+\_\+\+Qext\+Serial\+Port}} \&}]{s }\end{DoxyParamCaption})}

Override the = operator. \mbox{\Hypertarget{class_posix___qext_serial_port_a73b99fe7198e7e94b13c13416a6b9fae}\label{class_posix___qext_serial_port_a73b99fe7198e7e94b13c13416a6b9fae}} 
\index{Posix\+\_\+\+Qext\+Serial\+Port@{Posix\+\_\+\+Qext\+Serial\+Port}!read\+Data@{read\+Data}}
\index{read\+Data@{read\+Data}!Posix\+\_\+\+Qext\+Serial\+Port@{Posix\+\_\+\+Qext\+Serial\+Port}}
\subsubsection{\texorpdfstring{read\+Data()}{readData()}}
{\footnotesize\ttfamily qint64 Posix\+\_\+\+Qext\+Serial\+Port\+::read\+Data (\begin{DoxyParamCaption}\item[{char $\ast$}]{data,  }\item[{qint64}]{max\+Size }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [protected]}, {\ttfamily [virtual]}}

Reads a block of data from the serial port. This function will read at most max\+Size bytes from the serial port and place them in the buffer pointed to by data. Return value is the number of bytes actually read, or -\/1 on error.

\begin{DoxyWarning}{Warning}
before calling this function ensure that serial port associated with this class is currently open (use is\+Open() function to check if port is open). 
\end{DoxyWarning}


Implements \mbox{\hyperlink{class_qext_serial_base}{Qext\+Serial\+Base}}.

\mbox{\Hypertarget{class_posix___qext_serial_port_a007fcdd90f1137b010b6c43aa5b6dc6e}\label{class_posix___qext_serial_port_a007fcdd90f1137b010b6c43aa5b6dc6e}} 
\index{Posix\+\_\+\+Qext\+Serial\+Port@{Posix\+\_\+\+Qext\+Serial\+Port}!set\+Baud\+Rate@{set\+Baud\+Rate}}
\index{set\+Baud\+Rate@{set\+Baud\+Rate}!Posix\+\_\+\+Qext\+Serial\+Port@{Posix\+\_\+\+Qext\+Serial\+Port}}
\subsubsection{\texorpdfstring{set\+Baud\+Rate()}{setBaudRate()}}
{\footnotesize\ttfamily void Posix\+\_\+\+Qext\+Serial\+Port\+::set\+Baud\+Rate (\begin{DoxyParamCaption}\item[{Baud\+Rate\+Type}]{baud\+Rate }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}

Sets the baud rate of the serial port. Note that not all rates are applicable on all platforms. The following table shows translations of the various baud rate constants on Windows(including N\+T/2000) and P\+O\+S\+IX platforms. Speeds marked with an $\ast$ are speeds that are usable on both Windows and P\+O\+S\+IX.

\begin{DoxyNote}{Note}
B\+A\+U\+D76800 may not be supported on all P\+O\+S\+IX systems. S\+G\+I/\+I\+R\+IX systems do not support B\+A\+U\+D1800.
\end{DoxyNote}
\begin{DoxyVerb}  RATE          Windows Speed   POSIX Speed
  -----------   -------------   -----------
   BAUD50                 110          50
   BAUD75                 110          75
  *BAUD110                110         110
   BAUD134                110         134.5
   BAUD150                110         150
   BAUD200                110         200
  *BAUD300                300         300
  *BAUD600                600         600
  *BAUD1200              1200        1200
   BAUD1800              1200        1800
  *BAUD2400              2400        2400
  *BAUD4800              4800        4800
  *BAUD9600              9600        9600
   BAUD14400            14400        9600
  *BAUD19200            19200       19200
  *BAUD38400            38400       38400
   BAUD56000            56000       38400
  *BAUD57600            57600       57600
   BAUD76800            57600       76800
  *BAUD115200          115200      115200
   BAUD128000          128000      115200
   BAUD256000          256000      115200
\end{DoxyVerb}
 

Implements \mbox{\hyperlink{class_qext_serial_base}{Qext\+Serial\+Base}}.

\mbox{\Hypertarget{class_posix___qext_serial_port_a8f428dad3c4ec2fa8128397628c7e5d1}\label{class_posix___qext_serial_port_a8f428dad3c4ec2fa8128397628c7e5d1}} 
\index{Posix\+\_\+\+Qext\+Serial\+Port@{Posix\+\_\+\+Qext\+Serial\+Port}!set\+Data\+Bits@{set\+Data\+Bits}}
\index{set\+Data\+Bits@{set\+Data\+Bits}!Posix\+\_\+\+Qext\+Serial\+Port@{Posix\+\_\+\+Qext\+Serial\+Port}}
\subsubsection{\texorpdfstring{set\+Data\+Bits()}{setDataBits()}}
{\footnotesize\ttfamily void Posix\+\_\+\+Qext\+Serial\+Port\+::set\+Data\+Bits (\begin{DoxyParamCaption}\item[{Data\+Bits\+Type}]{data\+Bits }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}

Sets the number of data bits used by the serial port. Possible values of data\+Bits are\+: \begin{DoxyVerb}    DATA_5      5 data bits
    DATA_6      6 data bits
    DATA_7      7 data bits
    DATA_8      8 data bits
\end{DoxyVerb}


\begin{DoxyNote}{Note}
This function is subject to the following restrictions\+: 
\end{DoxyNote}
\begin{DoxyParagraph}{}
5 data bits cannot be used with 2 stop bits. 
\end{DoxyParagraph}
\begin{DoxyParagraph}{}
8 data bits cannot be used with space parity on P\+O\+S\+IX systems. 
\end{DoxyParagraph}


Implements \mbox{\hyperlink{class_qext_serial_base}{Qext\+Serial\+Base}}.

\mbox{\Hypertarget{class_posix___qext_serial_port_a089c560fd901eabe7190e80a36c7dcb8}\label{class_posix___qext_serial_port_a089c560fd901eabe7190e80a36c7dcb8}} 
\index{Posix\+\_\+\+Qext\+Serial\+Port@{Posix\+\_\+\+Qext\+Serial\+Port}!set\+Dtr@{set\+Dtr}}
\index{set\+Dtr@{set\+Dtr}!Posix\+\_\+\+Qext\+Serial\+Port@{Posix\+\_\+\+Qext\+Serial\+Port}}
\subsubsection{\texorpdfstring{set\+Dtr()}{setDtr()}}
{\footnotesize\ttfamily void Posix\+\_\+\+Qext\+Serial\+Port\+::set\+Dtr (\begin{DoxyParamCaption}\item[{bool}]{set = {\ttfamily true} }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}

Sets D\+TR line to the requested state (high by default). This function will have no effect if the port associated with the class is not currently open. 

Implements \mbox{\hyperlink{class_qext_serial_base}{Qext\+Serial\+Base}}.

\mbox{\Hypertarget{class_posix___qext_serial_port_a8bdd56422fbb95da7216f182a1ef6cfb}\label{class_posix___qext_serial_port_a8bdd56422fbb95da7216f182a1ef6cfb}} 
\index{Posix\+\_\+\+Qext\+Serial\+Port@{Posix\+\_\+\+Qext\+Serial\+Port}!set\+Flow\+Control@{set\+Flow\+Control}}
\index{set\+Flow\+Control@{set\+Flow\+Control}!Posix\+\_\+\+Qext\+Serial\+Port@{Posix\+\_\+\+Qext\+Serial\+Port}}
\subsubsection{\texorpdfstring{set\+Flow\+Control()}{setFlowControl()}}
{\footnotesize\ttfamily void Posix\+\_\+\+Qext\+Serial\+Port\+::set\+Flow\+Control (\begin{DoxyParamCaption}\item[{Flow\+Type}]{flow }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}

Sets the flow control used by the port. Possible values of flow are\+: \begin{DoxyVerb}    FLOW_OFF            No flow control
    FLOW_HARDWARE       Hardware (RTS/CTS) flow control
    FLOW_XONXOFF        Software (XON/XOFF) flow control
\end{DoxyVerb}
 \begin{DoxyNote}{Note}
F\+L\+O\+W\+\_\+\+H\+A\+R\+D\+W\+A\+RE may not be supported on all versions of U\+N\+IX. In cases where it is unsupported, F\+L\+O\+W\+\_\+\+H\+A\+R\+D\+W\+A\+RE is the same as F\+L\+O\+W\+\_\+\+O\+FF. 
\end{DoxyNote}


Implements \mbox{\hyperlink{class_qext_serial_base}{Qext\+Serial\+Base}}.

\mbox{\Hypertarget{class_posix___qext_serial_port_a22dedc4f44c33b13f64bff33f844f795}\label{class_posix___qext_serial_port_a22dedc4f44c33b13f64bff33f844f795}} 
\index{Posix\+\_\+\+Qext\+Serial\+Port@{Posix\+\_\+\+Qext\+Serial\+Port}!set\+Parity@{set\+Parity}}
\index{set\+Parity@{set\+Parity}!Posix\+\_\+\+Qext\+Serial\+Port@{Posix\+\_\+\+Qext\+Serial\+Port}}
\subsubsection{\texorpdfstring{set\+Parity()}{setParity()}}
{\footnotesize\ttfamily void Posix\+\_\+\+Qext\+Serial\+Port\+::set\+Parity (\begin{DoxyParamCaption}\item[{Parity\+Type}]{parity }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}

Sets the parity associated with the serial port. The possible values of parity are\+: \begin{DoxyVerb}    PAR_SPACE       Space Parity
    PAR_MARK        Mark Parity
    PAR_NONE        No Parity
    PAR_EVEN        Even Parity
    PAR_ODD         Odd Parity
\end{DoxyVerb}


\begin{DoxyNote}{Note}
This function is subject to the following limitations\+: 
\end{DoxyNote}
\begin{DoxyParagraph}{}
P\+O\+S\+IX systems do not support mark parity. 
\end{DoxyParagraph}
\begin{DoxyParagraph}{}
P\+O\+S\+IX systems support space parity only if tricked into doing so, and only with fewer than 8 data bits. Use space parity very carefully with P\+O\+S\+IX systems. 
\end{DoxyParagraph}


Implements \mbox{\hyperlink{class_qext_serial_base}{Qext\+Serial\+Base}}.

\mbox{\Hypertarget{class_posix___qext_serial_port_aa099a4b3f406cf017e1dfe55da3a2c6a}\label{class_posix___qext_serial_port_aa099a4b3f406cf017e1dfe55da3a2c6a}} 
\index{Posix\+\_\+\+Qext\+Serial\+Port@{Posix\+\_\+\+Qext\+Serial\+Port}!set\+Rts@{set\+Rts}}
\index{set\+Rts@{set\+Rts}!Posix\+\_\+\+Qext\+Serial\+Port@{Posix\+\_\+\+Qext\+Serial\+Port}}
\subsubsection{\texorpdfstring{set\+Rts()}{setRts()}}
{\footnotesize\ttfamily void Posix\+\_\+\+Qext\+Serial\+Port\+::set\+Rts (\begin{DoxyParamCaption}\item[{bool}]{set = {\ttfamily true} }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}

Sets R\+TS line to the requested state (high by default). This function will have no effect if the port associated with the class is not currently open. 

Implements \mbox{\hyperlink{class_qext_serial_base}{Qext\+Serial\+Base}}.

\mbox{\Hypertarget{class_posix___qext_serial_port_a34b54ac1bef6090010bf00a45dc173fe}\label{class_posix___qext_serial_port_a34b54ac1bef6090010bf00a45dc173fe}} 
\index{Posix\+\_\+\+Qext\+Serial\+Port@{Posix\+\_\+\+Qext\+Serial\+Port}!set\+Stop\+Bits@{set\+Stop\+Bits}}
\index{set\+Stop\+Bits@{set\+Stop\+Bits}!Posix\+\_\+\+Qext\+Serial\+Port@{Posix\+\_\+\+Qext\+Serial\+Port}}
\subsubsection{\texorpdfstring{set\+Stop\+Bits()}{setStopBits()}}
{\footnotesize\ttfamily void Posix\+\_\+\+Qext\+Serial\+Port\+::set\+Stop\+Bits (\begin{DoxyParamCaption}\item[{Stop\+Bits\+Type}]{stop\+Bits }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}

Sets the number of stop bits used by the serial port. Possible values of stop\+Bits are\+: \begin{DoxyVerb}    STOP_1      1 stop bit
    STOP_1_5    1.5 stop bits
    STOP_2      2 stop bits
\end{DoxyVerb}
 \begin{DoxyNote}{Note}
This function is subject to the following restrictions\+: 
\end{DoxyNote}
\begin{DoxyParagraph}{}
2 stop bits cannot be used with 5 data bits. 
\end{DoxyParagraph}
\begin{DoxyParagraph}{}
P\+O\+S\+IX does not support 1.\+5 stop bits. 
\end{DoxyParagraph}


Implements \mbox{\hyperlink{class_qext_serial_base}{Qext\+Serial\+Base}}.

\mbox{\Hypertarget{class_posix___qext_serial_port_a33cde9629cc224628258dedbb5b48392}\label{class_posix___qext_serial_port_a33cde9629cc224628258dedbb5b48392}} 
\index{Posix\+\_\+\+Qext\+Serial\+Port@{Posix\+\_\+\+Qext\+Serial\+Port}!set\+Timeout@{set\+Timeout}}
\index{set\+Timeout@{set\+Timeout}!Posix\+\_\+\+Qext\+Serial\+Port@{Posix\+\_\+\+Qext\+Serial\+Port}}
\subsubsection{\texorpdfstring{set\+Timeout()}{setTimeout()}}
{\footnotesize\ttfamily void Posix\+\_\+\+Qext\+Serial\+Port\+::set\+Timeout (\begin{DoxyParamCaption}\item[{long}]{millisec }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}

Sets the read and write timeouts for the port to millisec milliseconds. Note that this is a per-\/character timeout, i.\+e. the port will wait this long for each individual character, not for the whole read operation. This timeout also applies to the bytes\+Waiting() function.

\begin{DoxyNote}{Note}
P\+O\+S\+IX does not support millisecond-\/level control for I/O timeout values. Any timeout set using this function will be set to the next lowest tenth of a second for the purposes of detecting read or write timeouts. For example a timeout of 550 milliseconds will be seen by the class as a timeout of 500 milliseconds for the purposes of reading and writing the port. However millisecond-\/level control is allowed by the select() system call, so for example a 550-\/millisecond timeout will be seen as 550 milliseconds on P\+O\+S\+IX systems for the purpose of detecting available bytes in the read buffer. 
\end{DoxyNote}


Implements \mbox{\hyperlink{class_qext_serial_base}{Qext\+Serial\+Base}}.

\mbox{\Hypertarget{class_posix___qext_serial_port_a6687bed8a582b144763eb11c4240dbe5}\label{class_posix___qext_serial_port_a6687bed8a582b144763eb11c4240dbe5}} 
\index{Posix\+\_\+\+Qext\+Serial\+Port@{Posix\+\_\+\+Qext\+Serial\+Port}!size@{size}}
\index{size@{size}!Posix\+\_\+\+Qext\+Serial\+Port@{Posix\+\_\+\+Qext\+Serial\+Port}}
\subsubsection{\texorpdfstring{size()}{size()}}
{\footnotesize\ttfamily qint64 Posix\+\_\+\+Qext\+Serial\+Port\+::size (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [virtual]}}

This function will return the number of bytes waiting in the receive queue of the serial port. It is included primarily to provide a complete Q\+I\+O\+Device interface, and will not record errors in the last\+Err member (because it is const). This function is also not thread-\/safe -\/ in multithreading situations, use Posix\+\_\+\+Qext\+Serial\+Port\+::bytes\+Waiting() instead. 

Implements \mbox{\hyperlink{class_qext_serial_base}{Qext\+Serial\+Base}}.

\mbox{\Hypertarget{class_posix___qext_serial_port_aa099923f1360a08c6b7072254fd056e6}\label{class_posix___qext_serial_port_aa099923f1360a08c6b7072254fd056e6}} 
\index{Posix\+\_\+\+Qext\+Serial\+Port@{Posix\+\_\+\+Qext\+Serial\+Port}!translate\+Error@{translate\+Error}}
\index{translate\+Error@{translate\+Error}!Posix\+\_\+\+Qext\+Serial\+Port@{Posix\+\_\+\+Qext\+Serial\+Port}}
\subsubsection{\texorpdfstring{translate\+Error()}{translateError()}}
{\footnotesize\ttfamily void Posix\+\_\+\+Qext\+Serial\+Port\+::translate\+Error (\begin{DoxyParamCaption}\item[{ulong}]{error }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}

Translates a system-\/specific error code to a \mbox{\hyperlink{class_qext_serial_port}{Qext\+Serial\+Port}} error code. Used internally. 

Implements \mbox{\hyperlink{class_qext_serial_base}{Qext\+Serial\+Base}}.

\mbox{\Hypertarget{class_posix___qext_serial_port_a3a425e78db628945a666c52aa8638d0f}\label{class_posix___qext_serial_port_a3a425e78db628945a666c52aa8638d0f}} 
\index{Posix\+\_\+\+Qext\+Serial\+Port@{Posix\+\_\+\+Qext\+Serial\+Port}!unget\+Char@{unget\+Char}}
\index{unget\+Char@{unget\+Char}!Posix\+\_\+\+Qext\+Serial\+Port@{Posix\+\_\+\+Qext\+Serial\+Port}}
\subsubsection{\texorpdfstring{unget\+Char()}{ungetChar()}}
{\footnotesize\ttfamily void Posix\+\_\+\+Qext\+Serial\+Port\+::unget\+Char (\begin{DoxyParamCaption}\item[{char}]{c }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}

This function is included to implement the full Q\+I\+O\+Device interface, and currently has no purpose within this class. This function is meaningless on an unbuffered device and currently only prints a warning message to that effect. 

Implements \mbox{\hyperlink{class_qext_serial_base}{Qext\+Serial\+Base}}.

\mbox{\Hypertarget{class_posix___qext_serial_port_ae8aabe89e479259b0b991dbd6b424f78}\label{class_posix___qext_serial_port_ae8aabe89e479259b0b991dbd6b424f78}} 
\index{Posix\+\_\+\+Qext\+Serial\+Port@{Posix\+\_\+\+Qext\+Serial\+Port}!write\+Data@{write\+Data}}
\index{write\+Data@{write\+Data}!Posix\+\_\+\+Qext\+Serial\+Port@{Posix\+\_\+\+Qext\+Serial\+Port}}
\subsubsection{\texorpdfstring{write\+Data()}{writeData()}}
{\footnotesize\ttfamily qint64 Posix\+\_\+\+Qext\+Serial\+Port\+::write\+Data (\begin{DoxyParamCaption}\item[{const char $\ast$}]{data,  }\item[{qint64}]{max\+Size }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [protected]}, {\ttfamily [virtual]}}

Writes a block of data to the serial port. This function will write max\+Size bytes from the buffer pointed to by data to the serial port. Return value is the number of bytes actually written, or -\/1 on error.

\begin{DoxyWarning}{Warning}
before calling this function ensure that serial port associated with this class is currently open (use is\+Open() function to check if port is open). 
\end{DoxyWarning}


Implements \mbox{\hyperlink{class_qext_serial_base}{Qext\+Serial\+Base}}.



The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
\item 
R\+:/\+Develop/a0-\/develop/\+Lib\+Q\+Qt/src/network/qextserialport/posix\+\_\+qextserialport.\+h\item 
R\+:/\+Develop/a0-\/develop/\+Lib\+Q\+Qt/src/network/qextserialport/posix\+\_\+qextserialport.\+cpp\end{DoxyCompactItemize}
